Skip to content

DataFrame.sort

DataFrame.sort(
    *cols: pyspark_dubber.sql.expr.Expr | str,
    ascending: bool | list[bool] = True,
)

PySpark API Reference

Incompatibility Note

Sorting by column ordinals (which are 1-based, not 0-based) is not supported yet. Additionally, this function still needs better testing around edge cases, when sorting with complex column expressions which include sorting.